from django.conf.urls.defaults import *
from articles import views
from django.contrib.auth.decorators import login_required

urlpatterns= patterns('',
   url(r'^add_article/$', 
       login_required(views.add), 
       name ='article_add'
   ),
   url(r'^update_article/(?P<article_id>\d+)/(?P<dontvalidate>\w+)/$', 
       login_required(views.update), 
       name ='article_update'
   ),
   url(r'^update_note/(?P<note_id>\d+)/(?P<dontvalidate>\w+)/$', 
       login_required(views.update_note), 
       name ='article_upnote'
   ),
   url(r'^add_articlenote/(?P<article_id>\d+)/(?P<dontvalidate>\w+)/$', 
       login_required(views.add_note), 
       name ='article_addnote'
   ),
)
